package com.jic.order.mapper;

import com.jic.order.request.OrderRouteSplitWarehouseAndConditionsRequest;
import com.jic.order.request.OrderRouteSplitWarehouseRequest;
import com.jic.order.response.OrderRouteSplitWarehouseResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 路由分仓规则表
 * @author : 
 * @email : 
 * @since : 2020-03-03 10:55:11
 * @version : v1.0.0
 */
@Mapper
public interface  OrderRouteSplitWarehouseMapper {

    long insert(OrderRouteSplitWarehouseAndConditionsRequest orderRouteSplitWarehouse);

    long delete(Long id);

    long editStatus(@Param("id") Long id);

    long update(OrderRouteSplitWarehouseAndConditionsRequest orderRouteSplitWarehouse);

    OrderRouteSplitWarehouseResponse queryByPrimaryKey(Long id);

    List<OrderRouteSplitWarehouseResponse> query(OrderRouteSplitWarehouseRequest orderRouteSplitWarehouse);

    List<OrderRouteSplitWarehouseResponse> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("orderRouteSplitWarehouse") OrderRouteSplitWarehouseRequest orderRouteSplitWarehouse);

    long queryPageCount(OrderRouteSplitWarehouseRequest orderRouteSplitWarehouse);

}